﻿// ***********************************************************************
// Assembly         : Admin.Framework.Core.Infrastructure
// Author           : xwltz
// Created          : 2019-05-30
//
// Last Modified By : xwltz
// Last Modified On : 2019-05-30
// ***********************************************************************
// <summary>
//  系统常量
// </summary>
// ***********************************************************************

using System;

namespace Admin.Framework.Core.Infrastructure
{
    /// <summary>
    /// 框架配置类
    /// </summary>
    public static class FrameworkConfigs
    {
        #region 框架级配置项
        /// <summary>
        /// 框架版本好
        /// </summary>
        public static string Version = "1.2.0.0";
        /// <summary>
        /// 登陆信息有效期
        /// </summary>
        public static int LoginExpireDaysProp = 365;

        /// <summary>
        /// 系统秘钥
        /// </summary>
        public static string Key = "XwLtz";

        public static string LogRepository = "LOG4NETCoreRepository";

        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        public static string ConnectionString = "";
        //public static string ConnectionString = ConfigHelper.GetValue("SqlServerStr");
        //public static string ConnectionString = ConfigurationManager.ConnectionStrings["SqlServerStr"].ToString();
        //public static string ConnectionString = "Data Source = 192.168.11.5;Initial Catalog = test;User Id = sa;Password = ok;";

        #endregion

        #region 百度统计API配置项
        /// <summary>
        /// 登陆地址
        /// </summary>
        public static string LoginUrl = "https://api.baidu.com/sem/common/HolmesLoginService";
        /// <summary>
        /// 报告地址
        /// </summary>
        public static string ReportUrl = "https://api.baidu.com/json/tongji/v1/ReportService";
        /// <summary>
        /// 用户名
        /// </summary>
        public static string Username = "";
        /// <summary>
        /// 密码
        /// </summary>
        public static string Password = "";
        /// <summary>
        /// Token
        /// </summary>
        public static string Token = "";
        /// <summary>
        /// UUID
        /// </summary>
        public static string Uuid = Guid.NewGuid().ToString("N").ToUpper();
        /// <summary>
        /// 账户类型
        /// </summary>
        public static string AccountType = "1";
        #endregion

        #region 阿里云通用配置项
        /// <summary>
        /// AccessKeyId
        /// </summary>
        public static string AccessKeyId = "";
        /// <summary>
        /// AccessKeySecret
        /// </summary>
        public static string AccessKeySecret = "";

        #endregion

        #region 阿里云对象存储配置项

        public static string EndPoint = "";
        public static string DirToDownload = "";
        public static string FileToUpload = "";
        public static string BigFileToUpload = "";
        public static string ImageFileToUpload = "";
        public static string CallbackServer = "";

        #endregion

        #region 阿里大于短信服务配置项

        /// <summary>
        /// 短信API产品名称
        /// </summary>
        public static string Product = "";
        /// <summary>
        /// 短信API产品域名
        /// </summary>
        public static string Domain = "";
        /// <summary>
        /// 短信签名
        /// </summary>
        public static string SignName = "";
        /// <summary>
        /// 短信模板
        /// </summary>
        public static string TemplateCode = "";

        #endregion
    }
}
